<?xml version="1.0" encoding="UTF-8" ?>   
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 生成文件不允许修改-->
<mapper namespace="${table.pag}.dao.${table.className}Mapper" >
	<#assign resultMap=table.className?uncap_first + "ResultMap">
	<#assign sysFields=["id","deleted"]>
	<resultMap id="${resultMap}" type="${table.pag}.entity.${table.className}" >
  	<#list table.fields as field>
    	<result column="${field.columnName}" property="${field.property}"/>
    </#list>
	</resultMap>
  
  	<select id="getNewId" resultType="Long" parameterType="long">
		select func_seq_factory('TABLE_${table.tableName}',${r'#{_parameter}'})
	</select>
	
</mapper>